@import "variable";
@import "../../dist/css/sprite";

.yuner{
  position: relative;
  z-index: 19930807;
  .yunbox-bg,.yunbox-move{
    position: fixed;
    left: 0;
    top:0;
    width: 100%;
    height: 100%;
    background-color:#000;
    .opacity(0.3);
    z-index: 100;
  }
  .yunbox-move{
    display: none;
    .opacity(0);
    z-index: 199;
  }
  .yunbox {
    position: fixed;
    border: 1px solid #999;
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    z-index: 101;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transition:transform .2s,opacity .2s;
    .yunbox-content{
      position: relative;
      width: 100%;
      height: 100%;
      .yunbox-head-opt{
        position: absolute;
        right: 20px;
        top: 12px;
        z-index: 102;
        >a{
          display: block;
          float: left;
          margin: 0 5px;
        }
        .yunbox-opt-min{
          .sprite(@yuner-min);
        }
        .yunbox-opt-middle,.yunbox-opt-minmiddle{
          .sprite(@yuner-middle);
        }
        .yunbox-opt-max{
          .sprite(@yuner-max);
        }
        .yunbox-opt-close{
          .sprite(@yuner-close);
        }
      }
      .yunbox-head{
        position: relative;
        height: 40px;
        line-height: 40px;
        padding: 0 30px;
        background-color: #f5f5f5;
        cursor: move;
      }
      .yunbox-body{
        position: relative;
        width: 100%;
        height: calc(~'100% - 80px');
        height: -webkit-calc(~'100% - 80px');
        overflow: auto;
        background-color:  #fff;
        .yunbox-body-bg{
          position: absolute;
          top:0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(0,0,0,.3);
        }
        .yunbox-body-frame{
          display: block;
          width:100%;
          height: 100%;
        }
      }
      .yunbox-foot{
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: right;
        height: 40px;
        background-color: #f5f5f5;
        .yunbox-foot-btns{
          position: absolute;
          top: 5px;
          right: 10px;
          >a{
            display: inline-block;
            width: 60px;
            height:30px;
            line-height: 30px;
            text-align: center;
            font-size: 14px;
            margin: 0 5px;
            border: 1px solid #999;
          }
        }
        .yunbox-changesize{
          position: absolute;
          right: 0;
          bottom: 0;
          width: 15px;
          height: 15px;
          cursor: nw-resize;
        }
      }
    }

  }
  .scale1{
    transform: scale(1);
    opacity: 1;
  }
}